import {defineStore} from 'pinia'
import {RouteRecordRaw} from 'vue-router'

export default defineStore('AuthorityStore', {
    state: (): {
        route: RouteRecordRaw [];
        addRoute: RouteRecordRaw [];
    } => ({
        route: [],
        addRoute: []
    }),
    getters: {
        getRoute(): RouteRecordRaw[] {
            return this.route
        },
        getAddRoute(): RouteRecordRaw[] {
            // return flatMultiLevelRoutes(JSON.parse(JSON.stringify(this.addRoute)))
            return []
        }
    },
    actions: {}
})
